<style>@import "package:angular2_material/src/components/switcher/switch.css";</style>

<div (^click)="toggle($event)">
  <div class="md-switch-container">
    <div class="md-switch-bar"></div>
    <div class="md-switch-thumb-container">
      <div class="md-switch-thumb"></div>
    </div>
  </div>
  <div class="md-switch-label"><ng-content></ng-content></div>
</div>
